package edu.bcu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import edu.bcu.entity.Admin;
import edu.bcu.mapper.AdminMapper;
import edu.bcu.service.IAdminService;

@Service
public class AdminServiceImpl implements IAdminService{
	
	@Autowired
	private AdminMapper adminMapper;
	
	
	@Override
	public int addAdmin(Admin admin) {
		return adminMapper.addAdmin(admin);
		
	}

	@Override
	public int deleteAdminById(String id) {
		return adminMapper.deleteAdminById(id);
		
	}

	@Override
	public int updateAdmin(Admin admin) {
		return adminMapper.updateAdmin(admin);
		
	}

	@Override
	public Admin getAdminById(String id) {
		return adminMapper.getAdminById(id);
	}

	@Override
	public List<Admin> getAllAdmins() {
		
		return adminMapper.getAllAdmins();
	}

}
